<?php

namespace common\models\kingdee;

use Yii;

/**
 * This is the model class for table "T_HR_PERSONFAMILY".
 *
 * @property string $FID
 * @property string $FNAME
 * @property string $FCREATORID
 * @property string $FCREATETIME
 * @property string $FLASTUPDATEUSERID
 * @property string $FLASTUPDATETIME
 * @property string $FRELATIONID
 * @property string $FPOLITICALFACEID
 * @property string $FBIRTHDAY
 * @property string $FWORKUNIT
 * @property string $FDEGREEID
 * @property string $FOFFICEPHONE
 * @property string $FHOMEADDRESS_L1
 * @property string $FHOMEADDRESS_L2
 * @property string $FHOMEADDRESS_L3
 * @property string $FHOMEPHONE
 * @property string $FPERSONID
 * @property string $FHRORGUNITID
 * @property string $FCONTROLUNITID
 * @property string $FIDCARDNO
 * @property string $FNATIVEPLACE
 * @property string $FGRADUATESCHOOL
 * @property string $FFOLKID
 * @property string $FSPECIALTY
 * @property string $FSPECDUTY
 * @property string $FREMARK_L1
 * @property string $FREMARK_L2
 * @property string $FREMARK_L3
 * @property string $FZDY1
 * @property string $FZDY2
 * @property string $FZDY3
 * @property string $FZDY4
 * @property string $FZDY5
 * @property string $FZDY6
 * @property string $FZDY7
 * @property string $FZDY8
 * @property string $FZDY9
 * @property string $FZDY10
 * @property string $FZDY11
 * @property integer $FZDY12
 * @property integer $FZDY13
 * @property string $FZDY14
 * @property string $FZDY15
 * @property string $FREMARK
 * @property string $FPERSONELSTATUS
 * @property string $FNAME_L1
 * @property string $FNAME_L2
 * @property string $FNAME_L3
 * @property string $FNUMBER
 * @property string $FDESCRIPTION_L1
 * @property string $FDESCRIPTION_L2
 * @property string $FDESCRIPTION_L3
 * @property string $FSIMPLENAME
 * @property string $CFHKLXID
 * @property string $CFMZID
 * @property string $CFWHCDID
 * @property string $CFYJ
 * @property string $CFZC
 * @property string $CFZGTZID
 * @property string $CFZW
 * @property string $CFJTZZ
 * @property string $CFLXDH
 * @property integer $CFJJLXR
 * @property string $CFCS
 */
class PersonFamily extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'T_HR_PERSONFAMILY';
    }

    /**
     * @return \yii\db\Connection the database connection used by this AR class.
     */
    public static function getDb()
    {
        return Yii::$app->get('db_hr');
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['FID'], 'required'],
            [['FCREATETIME', 'FLASTUPDATETIME', 'FBIRTHDAY', 'FZDY4', 'FZDY5', 'FZDY6'], 'safe'],
            [['FZDY12', 'FZDY13', 'CFJJLXR'], 'integer'],
            [['FZDY14', 'FZDY15'], 'number'],
            [['FID', 'FCREATORID', 'FLASTUPDATEUSERID', 'FRELATIONID', 'FPOLITICALFACEID', 'FDEGREEID', 'FPERSONID', 'FHRORGUNITID', 'FCONTROLUNITID', 'FFOLKID', 'FZDY1', 'FZDY2', 'FZDY3', 'CFHKLXID', 'CFMZID', 'CFWHCDID', 'CFZGTZID'], 'string', 'max' => 44],
            [['FNAME', 'FPERSONELSTATUS', 'FNAME_L1', 'FNAME_L2', 'FNAME_L3', 'FDESCRIPTION_L1', 'FDESCRIPTION_L2', 'FDESCRIPTION_L3'], 'string', 'max' => 765],
            [['FWORKUNIT', 'FIDCARDNO', 'FZDY7', 'FZDY8', 'FZDY9', 'FZDY10', 'FZDY11', 'FNUMBER', 'FSIMPLENAME'], 'string', 'max' => 240],
            [['FOFFICEPHONE', 'FHOMEPHONE'], 'string', 'max' => 20],
            [['FHOMEADDRESS_L1', 'FHOMEADDRESS_L2', 'FHOMEADDRESS_L3'], 'string', 'max' => 255],
            [['FNATIVEPLACE', 'FGRADUATESCHOOL', 'FSPECIALTY', 'FSPECDUTY'], 'string', 'max' => 80],
            [['FREMARK_L1', 'FREMARK_L2', 'FREMARK_L3', 'FREMARK'], 'string', 'max' => 3600],
            [['CFYJ', 'CFZC', 'CFZW', 'CFCS'], 'string', 'max' => 1500],
            [['CFJTZZ'], 'string', 'max' => 3000],
            [['CFLXDH'], 'string', 'max' => 150],
            [['FID', 'FID', 'FID', 'FID'], 'unique', 'targetAttribute' => ['FID', 'FID', 'FID', 'FID'], 'message' => 'The combination of  and Fid has already been taken.'],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'FID' => Yii::t('kingdee', 'Fid'),
            'FNAME' => Yii::t('kingdee', 'Fname'),
            'FCREATORID' => Yii::t('kingdee', 'Fcreatorid'),
            'FCREATETIME' => Yii::t('kingdee', 'Fcreatetime'),
            'FLASTUPDATEUSERID' => Yii::t('kingdee', 'Flastupdateuserid'),
            'FLASTUPDATETIME' => Yii::t('kingdee', 'Flastupdatetime'),
            'FRELATIONID' => Yii::t('kingdee', 'Frelationid'),
            'FPOLITICALFACEID' => Yii::t('kingdee', 'Fpoliticalfaceid'),
            'FBIRTHDAY' => Yii::t('kingdee', 'Fbirthday'),
            'FWORKUNIT' => Yii::t('kingdee', 'Fworkunit'),
            'FDEGREEID' => Yii::t('kingdee', 'Fdegreeid'),
            'FOFFICEPHONE' => Yii::t('kingdee', 'Fofficephone'),
            'FHOMEADDRESS_L1' => Yii::t('kingdee', 'Fhomeaddress  L1'),
            'FHOMEADDRESS_L2' => Yii::t('kingdee', 'Fhomeaddress  L2'),
            'FHOMEADDRESS_L3' => Yii::t('kingdee', 'Fhomeaddress  L3'),
            'FHOMEPHONE' => Yii::t('kingdee', 'Fhomephone'),
            'FPERSONID' => Yii::t('kingdee', 'Fpersonid'),
            'FHRORGUNITID' => Yii::t('kingdee', 'Fhrorgunitid'),
            'FCONTROLUNITID' => Yii::t('kingdee', 'Fcontrolunitid'),
            'FIDCARDNO' => Yii::t('kingdee', 'Fidcardno'),
            'FNATIVEPLACE' => Yii::t('kingdee', 'Fnativeplace'),
            'FGRADUATESCHOOL' => Yii::t('kingdee', 'Fgraduateschool'),
            'FFOLKID' => Yii::t('kingdee', 'Ffolkid'),
            'FSPECIALTY' => Yii::t('kingdee', 'Fspecialty'),
            'FSPECDUTY' => Yii::t('kingdee', 'Fspecduty'),
            'FREMARK_L1' => Yii::t('kingdee', 'Fremark  L1'),
            'FREMARK_L2' => Yii::t('kingdee', 'Fremark  L2'),
            'FREMARK_L3' => Yii::t('kingdee', 'Fremark  L3'),
            'FZDY1' => Yii::t('kingdee', 'Fzdy1'),
            'FZDY2' => Yii::t('kingdee', 'Fzdy2'),
            'FZDY3' => Yii::t('kingdee', 'Fzdy3'),
            'FZDY4' => Yii::t('kingdee', 'Fzdy4'),
            'FZDY5' => Yii::t('kingdee', 'Fzdy5'),
            'FZDY6' => Yii::t('kingdee', 'Fzdy6'),
            'FZDY7' => Yii::t('kingdee', 'Fzdy7'),
            'FZDY8' => Yii::t('kingdee', 'Fzdy8'),
            'FZDY9' => Yii::t('kingdee', 'Fzdy9'),
            'FZDY10' => Yii::t('kingdee', 'Fzdy10'),
            'FZDY11' => Yii::t('kingdee', 'Fzdy11'),
            'FZDY12' => Yii::t('kingdee', 'Fzdy12'),
            'FZDY13' => Yii::t('kingdee', 'Fzdy13'),
            'FZDY14' => Yii::t('kingdee', 'Fzdy14'),
            'FZDY15' => Yii::t('kingdee', 'Fzdy15'),
            'FREMARK' => Yii::t('kingdee', 'Fremark'),
            'FPERSONELSTATUS' => Yii::t('kingdee', 'Fpersonelstatus'),
            'FNAME_L1' => Yii::t('kingdee', 'Fname  L1'),
            'FNAME_L2' => Yii::t('kingdee', 'Fname  L2'),
            'FNAME_L3' => Yii::t('kingdee', 'Fname  L3'),
            'FNUMBER' => Yii::t('kingdee', 'Fnumber'),
            'FDESCRIPTION_L1' => Yii::t('kingdee', 'Fdescription  L1'),
            'FDESCRIPTION_L2' => Yii::t('kingdee', 'Fdescription  L2'),
            'FDESCRIPTION_L3' => Yii::t('kingdee', 'Fdescription  L3'),
            'FSIMPLENAME' => Yii::t('kingdee', 'Fsimplename'),
            'CFHKLXID' => Yii::t('kingdee', 'Cfhklxid'),
            'CFMZID' => Yii::t('kingdee', 'Cfmzid'),
            'CFWHCDID' => Yii::t('kingdee', 'Cfwhcdid'),
            'CFYJ' => Yii::t('kingdee', 'Cfyj'),
            'CFZC' => Yii::t('kingdee', 'Cfzc'),
            'CFZGTZID' => Yii::t('kingdee', 'Cfzgtzid'),
            'CFZW' => Yii::t('kingdee', 'Cfzw'),
            'CFJTZZ' => Yii::t('kingdee', 'Cfjtzz'),
            'CFLXDH' => Yii::t('kingdee', 'Cflxdh'),
            'CFJJLXR' => Yii::t('kingdee', 'Cfjjlxr'),
            'CFCS' => Yii::t('kingdee', 'Cfcs'),
        ];
    }
}
